dhcpv4: dhcpv4_lease() - simplification
authorDavid Härdeman <[email protected]>
Wed, 8 Oct 2025 15:28:39 +0000 (17:28 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Sat, 25 Oct 2025 15:09:28 +0000 (17:09 +0200)
commit2c1e6e7c3ebf7255c4c48fda75007a4ddee979eb
tree315f6628f06e53628f91cb2fd40e7d45ad60017b
parent48487aedead85b87fe4b209e5ca199159337ba23
dhcpv4: dhcpv4_lease() - simplification

Reduce indentation, check some conditions and bail early, break it into clearer
chunks and add some comments.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/286
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c